package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 检验结果明细对象 biz_inspection_result
 * 
 * @author ruoyi
 * @date 2025-10-30
 */
public class BizInspectionResult extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 检验结果ID，主键 */
    private Long resultId;

    /** 检验计划ID */
    @Excel(name = "检验计划ID")
    private Long planId;

    /** 检验计划编号 */
    @Excel(name = "检验计划编号")
    private String planNo;

    /** 检验项目ID */
    @Excel(name = "检验项目ID")
    private Long itemId;

    /** 项目序号 */
    @Excel(name = "项目序号")
    private Long itemNo;

    /** 检验项目名称 */
    @Excel(name = "检验项目名称")
    private String itemName;

    /** 检验方法 */
    @Excel(name = "检验方法")
    private String inspectionMethod;

    /** 验收标准 */
    @Excel(name = "验收标准")
    private String acceptanceCriteria;

    /** 标准值 */
    @Excel(name = "标准值")
    private String standardValue;

    /** 上限值 */
    @Excel(name = "上限值")
    private BigDecimal upperLimit;

    /** 下限值 */
    @Excel(name = "下限值")
    private BigDecimal lowerLimit;

    /** 实际值 */
    @Excel(name = "实际值")
    private String actualValue;

    /** 检验结果：PASS-合格, FAIL-不合格 */
    @Excel(name = "检验结果：PASS-合格, FAIL-不合格")
    private String result;

    /** 缺陷描述 */
    @Excel(name = "缺陷描述")
    private String defectDescription;

    /** 检验员 */
    @Excel(name = "检验员")
    private String inspector;

    /** 检验时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检验时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inspectionTime;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    public void setResultId(Long resultId) 
    {
        this.resultId = resultId;
    }

    public Long getResultId() 
    {
        return resultId;
    }
    public void setPlanId(Long planId) 
    {
        this.planId = planId;
    }

    public Long getPlanId() 
    {
        return planId;
    }
    public void setPlanNo(String planNo) 
    {
        this.planNo = planNo;
    }

    public String getPlanNo() 
    {
        return planNo;
    }
    public void setItemId(Long itemId) 
    {
        this.itemId = itemId;
    }

    public Long getItemId() 
    {
        return itemId;
    }
    public void setItemNo(Long itemNo) 
    {
        this.itemNo = itemNo;
    }

    public Long getItemNo() 
    {
        return itemNo;
    }
    public void setItemName(String itemName) 
    {
        this.itemName = itemName;
    }

    public String getItemName() 
    {
        return itemName;
    }
    public void setInspectionMethod(String inspectionMethod) 
    {
        this.inspectionMethod = inspectionMethod;
    }

    public String getInspectionMethod() 
    {
        return inspectionMethod;
    }
    public void setAcceptanceCriteria(String acceptanceCriteria) 
    {
        this.acceptanceCriteria = acceptanceCriteria;
    }

    public String getAcceptanceCriteria() 
    {
        return acceptanceCriteria;
    }
    public void setStandardValue(String standardValue) 
    {
        this.standardValue = standardValue;
    }

    public String getStandardValue() 
    {
        return standardValue;
    }
    public void setUpperLimit(BigDecimal upperLimit) 
    {
        this.upperLimit = upperLimit;
    }

    public BigDecimal getUpperLimit() 
    {
        return upperLimit;
    }
    public void setLowerLimit(BigDecimal lowerLimit) 
    {
        this.lowerLimit = lowerLimit;
    }

    public BigDecimal getLowerLimit() 
    {
        return lowerLimit;
    }
    public void setActualValue(String actualValue) 
    {
        this.actualValue = actualValue;
    }

    public String getActualValue() 
    {
        return actualValue;
    }
    public void setResult(String result) 
    {
        this.result = result;
    }

    public String getResult() 
    {
        return result;
    }
    public void setDefectDescription(String defectDescription) 
    {
        this.defectDescription = defectDescription;
    }

    public String getDefectDescription() 
    {
        return defectDescription;
    }
    public void setInspector(String inspector) 
    {
        this.inspector = inspector;
    }

    public String getInspector() 
    {
        return inspector;
    }
    public void setInspectionTime(Date inspectionTime) 
    {
        this.inspectionTime = inspectionTime;
    }

    public Date getInspectionTime() 
    {
        return inspectionTime;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("resultId", getResultId())
            .append("planId", getPlanId())
            .append("planNo", getPlanNo())
            .append("itemId", getItemId())
            .append("itemNo", getItemNo())
            .append("itemName", getItemName())
            .append("inspectionMethod", getInspectionMethod())
            .append("acceptanceCriteria", getAcceptanceCriteria())
            .append("standardValue", getStandardValue())
            .append("upperLimit", getUpperLimit())
            .append("lowerLimit", getLowerLimit())
            .append("actualValue", getActualValue())
            .append("result", getResult())
            .append("defectDescription", getDefectDescription())
            .append("inspector", getInspector())
            .append("inspectionTime", getInspectionTime())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .toString();
    }
}
